<!DOCTYPE html>
<html>
<head>
	<title>Test TrendingNews Function</title>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body>
<?php
include_once('classes/News.php');
include_once('functions/getTrendingNews.php');

$newsArray = getTrendingNews();

foreach($newsArray as $news){

	$title = $news->getTitle();
	
	echo "$title </br>";
}

?>
</body>
</html> 